package com.cruise.h5.pojo.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
/**
 * <p>
 *
 * </p>
 *
 * @author cruise
 * @since 2021-09-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("b_video_comment_like_record")
public class VideoCommentLikeRecord implements Serializable {

    public VideoCommentLikeRecord(String userId, String commentId, Integer type) {
        this.userId = userId;
        this.commentId = commentId;
        this.type = type;
    }

    public VideoCommentLikeRecord() {
    }

    private static final long serialVersionUID = 1L;
    /**
     * 唯一ID
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 视频ID
     */
    @TableField("comment_id")
    private String commentId;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate = new Date();
    /**
     * 0点踩 ，1点赞
     */
    @TableField("type")
    private Integer type;
}

